<template>
  <div>
    <div class="blockLeft">
      <button type="button" class="confirmbtn" @click="buttonClick">{{ptitle}}</button>
    </div>
    <div :class="pline === 1?'blockRightLong':'blockRight'">
    </div>
  </div>
</template>

<script>
export default {
  name: 'bpmCBlockbutton',
  props: {
    show: {
      type: Boolean,
      default: true
    },
    // 可能占一整行或行的一半
    pline: {
      type: Number,
      default: 2
    },
    ptitle: {
      type: String,
      default: ' '
    },
    validateExp: {
      type: Object,
      default () {
        return {}
      }
    }
  },
  methods: {
    buttonClick () {
      // console.log('clicked!!')
      this.$emit('buttonClick')// ,{item})
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  .blockLeft {
    background-color: #f4f4f4;
    float: left;
    text-align: center;
    width: 140px;
    min-height: 26px;
    border-left: 1px solid #e3e3e3;
    border-right: 1px solid #e3e3e3;
  }

  .confirmbtn {
    background-color: rgb(217, 233, 247);
    border: 1px solid #d5d5d5;
    box-sizing: border-box;
    display: inline-block;
    font-family: Arial;
    font-size: 12px;
    height: 24px;
    line-height: 24px;
    margin: 1px;
    padding: 0px 6px 0px 6px;
    text-align: center;
  }
  .blockRight {
    background-color: #eff3f6;
    float: left;
    padding-left: 8px;
    min-height: 26px;
    width: 340px;
    min-width: 340px;
    text-align: left;
  }
  .blockRightLong {
    background-color: #eff3f6;
    float: left;
    padding-left: 8px;
    min-height: 26px;
    width: 830px;
    min-width: 830px;
    text-align: left;
  }
</style>
